package com.example.demo.entity.dto;

import com.example.demo.verify.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "用户信息传参")
public class UserDTO {
    @ApiModelProperty("姓名")
    @NoEmptyNoWicked(message = "姓名格式异常")
    private String name;

    @ApiModelProperty("年龄")
    @NoEmptyNoNum(message = "年龄格式异常")
    private String age;

    @ApiModelProperty("性别")
    @NoEmpty(message = "性别格式异常")
    private String sex;

    @ApiModelProperty("工作岗位")
    @NoEmptyNoWicked(message = "工作岗位格式异常")
    private String job;

    @ApiModelProperty("联系号码")
    @NoEmptyNoMobile(message = "联系号码格式异常")
    private String phone;
}
